package com.lrkj.property.domain;

import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 广告管理对象 tm_advert_manag
 *
 * @author yajun_ren
 * @date 2022-03-16
 */
@Data
public class AdvertManag extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    private String id;

    /**
     * 小区ID
     */
    @Excel(name = "小区ID")
    private String communityId;

    /**
     * 广告名称
     */
    @Excel(name = "广告名称")
    private String advertName;

    /**
     * 广告面积
     */
    @Excel(name = "广告面积")
    private BigDecimal advertArea;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer orderNum;

    /**
     * 部门ID
     */
    @Excel(name = "部门ID")
    private String deptId;

    /**
     * 祖父ID
     */
    @Excel(name = "祖父ID")
    private String ancestors;

    //小区名称
    private String communityName;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("communityId", getCommunityId())
                .append("advertName", getAdvertName())
                .append("advertArea", getAdvertArea())
                .append("orderNum", getOrderNum())
                .append("deptId", getDeptId())
                .append("ancestors", getAncestors())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
